package com.dsh.gulimall.ware.dao;

import com.dsh.gulimall.ware.entity.WareSkuEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 商品库存
 *
 * @author dsh
 * @email 3090930041@qq.com
 * @date 2022-04-25 22:16:48
 */
@Mapper
public interface WareSkuDao extends BaseMapper<WareSkuEntity> {

    void addStock(@Param("skuId") Long skuId, @Param("wareId") Long wareId, @Param("skuNum")Integer skuNum);

    Long getSkuStock(Long skuId);
}
